package com.sun.audit.entity;

import com.sun.audit.enums.UpdateType;
import lombok.Data;

import java.util.HashSet;
import java.util.Set;

/**
 * SQL 语句分析结果
 */
@Data
public class StatementAnalysis {
    private String statementId;
    private String sql;
    private UpdateType updateType = UpdateType.UNKNOWN;
    private Class<?> entityClass;
    private Set<String> conditionFields = new HashSet<>();
    private String primaryKeyField;
    private Class<?> mapperClass;
}